<?php /* Smarty version Smarty-3.1.11, created on 2013-01-10 06:18:52
         compiled from "E:\wamp\www\qy\tpl\user\user_list.tpl" */ ?>
<?php /*%%SmartyHeaderCode:1891550ee5d4c7606f3-95031141%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '16ac50b0c654e4f8455618c9f76f969e6d85ee42' => 
    array (
      0 => 'E:\\wamp\\www\\qy\\tpl\\user\\user_list.tpl',
      1 => 1357567182,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '1891550ee5d4c7606f3-95031141',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'user_name' => 0,
    'user_list' => 0,
    'list' => 0,
    'page_str' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_50ee5d4c8c66b8_49762100',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_50ee5d4c8c66b8_49762100')) {function content_50ee5d4c8c66b8_49762100($_smarty_tpl) {?><?php if (!is_callable('smarty_modifier_date_format')) include 'E:\\wamp\\www\\pl_common\\smarty\\plugins\\modifier.date_format.php';
?><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文档管理</title>
<link rel="stylesheet" type="text/css" href="../img/base.css">
</head>
<body leftmargin="8" topmargin="8" background='../img/allbg.gif'>
        <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" align="center">
            <tr>
		<td align='center' valign='top'>
                    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
                        <tr>
                            <td height="26" background="../img/newlinebg3.gif">
                                <table width="98%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td align="right">
                                                <input type='button' class="coolbg np" onClick="location='user_info.php?action=add';" value='添加会员' />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                       </tr>
                    </table>
			
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr bgcolor="#FFFFFF">
                             <td height="4"></td>
                           </tr>
                    </table>
                
                     <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#D1DDAA">
                          <tr>
                               <td height="26" background="../img/tbg.gif">
                                  <form action="" method="post">
                                        <table width="98%" border="0" cellspacing="2" cellpadding="0">
                                                <tr>
                                                      <td  colspan="4" align="center">
                                                          会员名称：<input type='text' name='user_name' id="user_name" value="<?php echo $_smarty_tpl->tpl_vars['user_name']->value;?>
" />
                                                                 <input type="hidden" name="op" value="search" />
                                                                 <input type='submit' class="coolbg np" value='搜索' />
                                                      </td>
                                               </tr> 
                                        </table>
                                    </form>
                              </td>
                         </tr>
                     </table>
            
                    <table width="100%" border="0" cellpadding="0" cellspacing="0">
                        <tr bgcolor="#FFFFFF">
                            <td height="4"></td>
                        </tr>
                    </table>

                    <table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D1DDAA">
                        <tr bgcolor="#E7E7E7">
                            <td height="24" align="left" colspan="9" background="../img/tbg.gif">
                                §会员 &gt; 会员管理&nbsp;
                            </td>
                        </tr>
                        <tr align="center" bgcolor="#FAFAF1" height="22">
                            <td width="6%">ID</td>
							<td width="8%">会员分类</td>
                            <td width="8%">会员姓名</td>
							<td width="8%">会员性别</td>
							<td width="8%">会员电话</td>
							<td width="8%">状态</td>
							<td width="8%">注册时间</td>	
                            <td width="10%">操作</td>
                        </tr>
                        <?php  $_smarty_tpl->tpl_vars['list'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['list']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['user_list']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['list']->key => $_smarty_tpl->tpl_vars['list']->value){
$_smarty_tpl->tpl_vars['list']->_loop = true;
?>
                            <tr align='center' bgcolor="#FFFFFF"  onMouseMove="javascript:this.bgColor='#f4fbf4';" onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22">
                                 <td align='left'>&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['list']->value['user_id'];?>
</td>
                               
								<?php if ($_smarty_tpl->tpl_vars['list']->value['user_type_id']==0){?>
									   <td align='left'>&nbsp;&nbsp;普通会员</td>
								<?php }elseif($_smarty_tpl->tpl_vars['list']->value['user_type_id']==1){?>
								   <td align='left'>&nbsp;&nbsp;一级经销商</td>
								<?php }elseif($_smarty_tpl->tpl_vars['list']->value['user_type_id']==2){?>
								   <td align='left'>&nbsp;&nbsp;二级经销商</td>
								<?php }else{ ?>
									<td align='left'>&nbsp;&nbsp;名企会员</td>
								<?php }?>   
								 <td align='left'>&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['list']->value['user_name'];?>
</td>								 
								<?php if ($_smarty_tpl->tpl_vars['list']->value['user_sex']==1){?>
									   <td align='left'>&nbsp;&nbsp;男</td>
								<?php }else{ ?>
								   <td align='left'>&nbsp;&nbsp;女</td>
								<?php }?>     
                                <td align='left'>&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['list']->value['user_phone'];?>
</td>
								<?php if ($_smarty_tpl->tpl_vars['list']->value['user_status']==1){?>
									   <td align='left'>&nbsp;&nbsp;启用</td>
								<?php }else{ ?>
								   <td align='left'>&nbsp;&nbsp;禁用</td>
								<?php }?>                               
                                <td align='left'>&nbsp;&nbsp;<?php echo smarty_modifier_date_format($_smarty_tpl->tpl_vars['list']->value['ret_addtime'],"%Y-%m-%d %H:%M");?>
</td>
                                <td>
									<a href="user_info.php?action=edit&user_id=<?php echo $_smarty_tpl->tpl_vars['list']->value['user_id'];?>
">编辑</a> |
									<a href="javascript:del(<?php echo $_smarty_tpl->tpl_vars['list']->value['user_id'];?>
)">删除</a>
                                </td>
                            </tr>
                        <?php } ?>                
                        <tr bgcolor="#FAFAF1">
                            <td height="24" colspan="12">&nbsp;&nbsp;<?php echo $_smarty_tpl->tpl_vars['page_str']->value;?>
</td>
                        </tr>
                    </table>

                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td height="4"></td>
                        </tr>
                        <tr bgcolor="#FFFFFF">
                                <td height="26"></td>
                        </tr>
                        <tr>
                                <td colspan="2" height="4"></td>
                        </tr>
                    </table>
                </td>
            </tr>
     </table>
</body>
</html>
<script>
function del(id)
{
	if(id == 0)
	{
		alert("请选择会员！");
		return false;
	}
	if (confirm("是否删分类？\n\n确定->删除\n\n取消->不删除"))
	{
		location = "user_act.php?action=del&user_id="+id;
	}
}
</script><?php }} ?>